package MulticastQuene;

import java.io.Serializable;
import java.net.InetSocketAddress;
import java.util.Set;

public class MultiCastMessagePayloadTotal<E extends Serializable> extends MulticastMessageTotal {
    public MultiCastMessagePayloadTotal(InetSocketAddress myAddress, Set<InetSocketAddress> _sentTo , E e, int _clock) {
        super(myAddress, _sentTo,_clock);
        payload = e;
    }
    public String toString() {
        return "(PayloadMessage from " + getSender() +
                " with payload " + payload + ")";
    }

    private E payload;

    /**
     * @return The payload of this message.
     */
    public E getPayload() {
        return payload;
    }


}